package net.tv90.shoppingserver.dao;

import net.tv90.shoppingserver.model.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Integer> {

    User findUserByUsernameAndPassword(String username, String password);

    User findUserByUsernameOrEmail(String username, String email);

    User findUserByUsername(String username);

}